package com.example.ticket.demo.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class AsyncTaskService {

    @Async("taskExecutor")
    public void executeAsyncTask(Integer n){
        log.info(">>>>>>>>>>异步任务执行："+n);
    }





}
